home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 102 / CD-ROM 102.iso / aplic / 2sync / 2SyncSetup.exe / channels / 2Sync / tips / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2002-03-22  |  582 b   |  27 lines

  1. function displayTip(text)
  2. {
  3.    var mytip = this.content.tipField;
  4.    mytip.text.field = text;
  5.    mytip.scroller.init();
  6. }
  7. function displayTitle(text)
  8. {
  9.    var mytip = this.content.tipField;
  10.    mytip.text.title = text;
  11. }
  12. function displayImage(contents)
  13. {
  14.    tip_gfx.loadMovie(contents[0]);
  15.    this.displayTitle(contents[1]);
  16.    var n = 2;
  17.    var text;
  18.    while(n < contents.length)
  19.    {
  20.       text += contents[n] + "\n";
  21.       n++;
  22.    }
  23.    this.displayTip(text);
  24. }
  25. tipFile = new _level0.file(this.initialiseFile);
  26. tipfile.readContents(this,"displayImage");
  27.